strncat(s,t,n) concat n characters of t to end of s
strcmp(s,t) <0 if(s<t), 0 if(s==t), >0 if(s>t)
strncmp(s,t,n) same as strcmp but only in first n characters
strcpy(s,t) copy t into s
strncpy(s,t,n) copy at most n characters of t into s
strlen(s) return length of s
strchr(s,c) return pointer to first c in s, else NULL
strrchr(s,c) return pointer to last c in s, else NULL
••• CHARACTER CLASS TESTS: <ctype.h>
isalpha(c) non-zero if c is alphabetic; 0 if not
isupper(c) non-zero if c is upper case; 0 if not
islower(c) non-zero if c is lower case; 0 if not
isdigit(c) non-zero if c is a digit(0..9); 0 if not
isalnum(c) non-zero if isalpha(c) or isdigit(c); 0 if not
isspace(c) non-zero if c is blank, \t, \n, \r, \f, \v
toupper(c) return c converted to upper case
tolower(c) return c converted to lower case
••• ABOUT C QUICK REFERENCE
C Quick Reference (CQR) is compiled by Stephen D. Krans. CQR is FREE so please distribute it unmodified to anyone interested in writing C Code. If you have any comments, questions, or suggestions, please contact me through one of the following electronic addresses:
GEnie: SKRANS
CIS: 76474,757
AOL: SKRANS
Many thanks to Bill Steinberg for writing DisplayDA! Click on the "About DisplayDA" box below to learn more about it.
••• EVOLUTIONS
Version: 1.0
Date: Thursday, December 6, 1990
Comments: First release
••• ENDNOTES
^ Not supported by THINK C 4.0.2.
† THINK C 4.0.2 specific; may differ on other compilers.